package com.cheryl.springailearn.functions;

import java.util.function.Function;

public class RecruitServiceFunction implements Function<RecruitServiceFunction.Request, RecruitServiceFunction.Response> {

    @Override
    public Response apply(Request request) {
        String position="未知";
        if(request.name.contains("张真源")){
            position="算法工程师";
        }
        return new Response(position);
    }

    public record Request(String name){

    }
    public record Response(String position){}
}
